package com.serverGroup.baseModule.bean;

import com.serverGroup.base.BaseBean;

/**
 * Title: UserBean Description: 基础模块中的用于用户表的用户Bean
 * 
 * @author Hr222
 * @date 2018年8月23日
 */
public class UserBean implements BaseBean{
	/**
	* serialVersionUID
	*/  
	private static final long serialVersionUID = 987775488287881944L;
	private int id;
	private String username;
	private String password;
	private String tel;
	private int userType;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	/**
	 * 
	 * @Title: getUserType
	 * @Description: 返回用户类型，管理人员：88，普通用户：100，admin：0
	 * @return userType
	 */
	public int getUserType() {
		return userType;
	}
	
	public void setUserType(int userType) {
		this.userType = userType;
	}
	
	/**
	 * 
	 * @Title: setUserType
	 * @Description:用户类型，传入true是将用户设置成为管理人员，false则是设置成为普通用户 
	 * @param userType
	 */
	public void setUserType(boolean userType) {
		if (userType) {
			this.userType = 88;
		}else {
			this.userType = 100;
		}
	}

}
